package com.woniu.guoguo.service.impl;

import com.woniu.guoguo.model.RestaurantImg;
import com.woniu.guoguo.dao.RestaurantImgMapper;
import com.woniu.guoguo.service.IRestaurantImgService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Richie
 * @since 2020-11-02
 */
@Service
public class RestaurantImgServiceImpl extends ServiceImpl<RestaurantImgMapper, RestaurantImg> implements IRestaurantImgService {

    @Autowired
    private RestaurantImgMapper restaurantImgMapper;

    @Override
    public List<String> findImagesByRestId(Integer restaurantId) {
        return restaurantImgMapper.findImagesByRestId(restaurantId);
    }
}
